class Factorial {
       public static void main(String [] args) {
           System.out.println(fact(i));
      }
 
     public static int fact(int n) {
         if (n == 0)
              return 1;
         else
             return n * fact(n-1);
   }
 }
